package com.drive.room.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/mfcard")
public class MfCardController {


    @RequestMapping(value = "/index")
    public String index(HttpServletRequest request, Model model) {

        model.addAttribute("name","kingboyrang");
        return "mfcard/mfcard";
    }

    @RequestMapping(value = "/search")
    public String search(HttpServletRequest request, Model model) {
        return "mfcard/packageSearch";
    }

    @RequestMapping(value = "/service")
    public String service(HttpServletRequest request, Model model) {
        return "mfcard/serviceSearch";
    }

    @RequestMapping(value = "/position")
    public String position(HttpServletRequest request, Model model) {
        return "mfcard/position";
    }
}
